package com.joysuch.wwyt.core.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;
@Data
@TableName("wwyt_base_role_data_emp_auth")
public class  BaseRoleDataEmpAuth {
    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    @TableField(value = "TENENT_ID")
    private Long tenentId;

    @TableField(value = "ORG_CODE")
    private String orgCode;

    @NotNull(message = "角色id不能为空")
    @ApiModelProperty(value = "角色id",required = true)
    @TableField(value = "ROLE_ID")
    private Long roleId;

    @NotNull(message = "人员id不能为空")
    @ApiModelProperty(value = "人员id  选择本人则传 -1",required = true)
    @TableField(value = "USER_ID")
    private Long userId;

    /** $column.columnComment */
    @TableField(value = "CREATE_BY")
    private Long createBy;

    /** $column.columnComment */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "CREATE_TIME")
    private Date createTime;

    /** $column.columnComment */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "UPDATE_BY")
    private Date updateTime;

    /** $column.columnComment */
    @TableField(value = "UPDATE_TIME")
    private Long updateBy;

}